using net_work.Data.Enum.Appr;

namespace net_work.Data.DTO.Appr;

public class FlowNodeUpdateRequest
{
    /// <summary>
    /// 流程节点ID
    /// </summary>
    public long Id { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 流程节点名称
    /// </summary>
    public required string Name { get; set; }

    /// <summary>
    /// 节点需要的处理对象的类型
    /// </summary>
    public required NodeProcessingType ProcessingType { get; set; }

    /// <summary>
    /// 节点需要的处理对象的ID
    /// </summary>
    public required long ProcessingId { get; set; }

    /// <summary>
    /// 节点通过依据类型
    /// </summary>
    public required NodeSuccessType SuccessType { get; set; }

    /// <summary>
    /// 节点通过依据配置
    /// </summary>
    public long? SuccessConfig { get; set; }

    /// <summary>
    /// 当前节点通过后跳转的节点ID，-1代表结束
    /// </summary>
    public long? SuccessNodeId { get; set; }

    /// <summary>
    /// 当前节点失败后跳转的节点ID，-1代表结束
    /// </summary>
    public long? FailureNodeId { get; set; }
}